<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>整理结果</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-image: url('https://s2.loli.net/2024/05/13/oDmLOVNUujC8ZMS.jpg');
            background-size: cover;
            background-position: center;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .container {
            background-color: rgba(255, 255, 255, 0);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 80%;
            max-width: 600px;
        }
        .container h1 {
            text-align: center;
            margin-bottom: 20px;
        }
        .container pre {
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        .container a, .container button {
            display: block;
            margin: 20px auto;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
        }
        .container a:hover, .container button:hover {
            background-color: #45a049;
        }
        h1 {
            color: #D3D3D3;
            font-size: 50px;
            font-weight: bold;
            font-family: "Times New Roman", Times, serif;
        }

        textarea {
            width: 100%;
            height: 400px;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            background-color: #f8f8f8;
            resize: none;
            background-color: rgba(255, 255, 255, 0.8);
            white-space: pre-wrap;
            word-wrap: break-word;
    </style>
</head>
<body>
    <div class="container">
        <h1>大纲</h1>
        <textarea>{{ outline }}</textarea>
        <a href="{{ url_for('download_file', filename=docx_path) }}">下载整理好的大纲</a>
        <button onclick="window.location.href='/'">返回</button>
    </div>
</body>
</html>
